﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 业务系统的费用详细信息
    /// </summary>
    [Serializable]
    public class fy_detail
    {
        #region 数据表名称
        public static readonly string TableName = "fy_detail";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 记录id
            /// </summary>
            public static readonly string id = @"id";

            /// <summary>
            /// 费用类型
            /// </summary>
            public static readonly string fy_lx = @"fy_lx";

            /// <summary>
            /// 费用金额
            /// </summary>
            public static readonly string fy_je = @"fy_je";

            /// <summary>
            /// 费用描述
            /// </summary>
            public static readonly string fy_describe = @"fy_describe";

            /// <summary>
            /// 费用所属项目ID
            /// </summary>
            public static readonly string fy_proj_id = @"fy_proj_id";

            /// <summary>
            /// 费用所属部门ID
            /// </summary>
            public static readonly string fy_dept_id = @"fy_dept_id";

            /// <summary>
            /// 费用所属报账记录ID
            /// </summary>
            public static readonly string fybz_id = @"fybz_id";

            /// <summary>
            /// 费用所属类型ID
            /// </summary>
            public static readonly string fy_lx_id = @"fy_lx_id";

            /// <summary>
            /// 费用产生的类型代码，FYBZ：报账；WPLY：物品领用。
            /// </summary>
            public static readonly string fy_type = @"fy_type";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string id { get; set; }

        /// <summary>
        /// 费用类型
        /// </summary>
        public virtual string fy_lx { get; set; }

        /// <summary>
        /// 费用金额
        /// </summary>
        public virtual decimal fy_je { get; set; }

        /// <summary>
        /// 费用描述
        /// </summary>
        public virtual string fy_describe { get; set; }

        /// <summary>
        /// 费用所属项目
        /// </summary>
        public virtual t_project fy_project { get; set; }

        /// <summary>
        /// 费用所属部门
        /// </summary>
        public virtual t_sys_department fy_department { get; set; }

        /// <summary>
        /// 费用所属报账记录
        /// </summary>
        public virtual DB_NH.DB_Model.FYBZ.wf_fybz fybz { get; set; }

        /// <summary>
        /// 费用所属类型
        /// </summary>
        public virtual DB_NH.DB_Model.ywxt.t_sys_finance_type fylx { get; set; }

        /// <summary>
        /// 费用产生的类型代码，FYBZ：报账；WPLY：物品领用。
        /// </summary>
        public virtual string fylxdm { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion

        public fy_detail()
        {
            this.fy_project = new t_project();
            this.fy_department = new t_sys_department();
            this.fybz = new FYBZ.wf_fybz();
            this.fylx = new t_sys_finance_type();
        }
    }
}
